//
//  YJMenuView.h
//  CRJMenuProject
//
//  Created by crj on 2017/3/14.
//  Copyright © 2017年 crj. All rights reserved.
//

#import <UIKit/UIKit.h>

/**
 *横棑切换Tab卡 不带view
 */

@protocol YJMenuViewDelegate <NSObject>

- (void)menuSelectWithIndex:(NSInteger)index;

@end

@interface YJMenuView : UIView

@property (nonatomic, weak) id<YJMenuViewDelegate> delegate;
@property (nonatomic, assign) NSInteger currentIndex;

//- (id)initWithTitles:(NSArray *)titles;

- (id)initWithFrame:(CGRect)frame titles:(NSArray *)titles;

@end
